package com.coffee.attachment.excel;

import com.coffee.attachment.ExcelDocumentDTO;
import com.coffee.attachment.NotifyExcelDownloadDTO;
import com.coffee.excel.MochaExcelSheet;

/**
 * @author songkui
 * @since 2024/4/17 19:18
 */
public interface ExcelHandler {

    /**
     * 通过excelCode file 获取excl
     * @param excelCode
     * @param fields
     * @return
     */
    MochaExcelSheet findExcelSheetByCodeFile(String excelCode, String fields);

    /**
     * 持久化文档信息
     * @param excelDocumentDTO
     * @return
     */
    Long saveExcelDocument(ExcelDocumentDTO excelDocumentDTO);


    /**
     * 同通知下载
     * @param notifyExcelDownloadDTO
     */
    void notifyExcelDownload(NotifyExcelDownloadDTO notifyExcelDownloadDTO);


}
